package com.zmx.controller;

import com.zmx.service.SysLogService;
import com.zmx.utils.RUtils;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 2020/10/22
 * 18:25
 * zmx
 */
@RestController
public class SysLogController {
    @Resource
    SysLogService sysLogService;
    @RequestMapping("log/list")
    public RUtils getLogList(int limit,int offset,String order,String search){
        return sysLogService.findByPage(limit, offset, order, search);
    }
    @RequestMapping("schedule/log/del")
    public RUtils deleteAll(@RequestBody List<Long> ids){
        return sysLogService.deleteAll(ids);
    }
}
